<template>
  <div>
<van-tabs v-model="active" animated>
  <van-tab v-for="index in 9" :title="'选项 ' + index" :key="index">
    内容 {{ index }}
  </van-tab>
</van-tabs>
    <!-- <router-view></router-view>  嵌套写法-->
  </div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'HomePage',
  data () {
    return {
      active: ''
    }
  },
  async created () {
    const res = await axios.get('http://toutiao.itheima.net/v1_0/articles')
    console.log(res)
  }
}
</script>

<style scoped lang="less">

</style>
